
#!/usr/bin/env python

import sys
for line in sys.stdin.xreadlines():
    l = line.replace("[", "oobb").replace("]", "ccbb")
    parts = l.split(" ")
    if len(parts) > 2 and parts[2].startswith("inst__"):
        r = " ".join(parts[:2]) + " " + " ".join(parts[3:])
    else:
        r = l
    r = r.rstrip()
    if r[-1] == "\\":
        r = r[:-1] + " "
    else:
        r = r + "\n"
    print r,


